package com.leanyuan.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leanyuan.dao.StaffMsgMapper_V;
import com.leanyuan.domain.StaffMsg;
import com.leanyuan.service.StaffMsgService_V;
import com.leanyuan.vo.DeptandEmpVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@Service
public class StaffMsgServiceVImpl_V extends ServiceImpl<StaffMsgMapper_V, StaffMsg> implements StaffMsgService_V {
    @Autowired
    StaffMsgMapper_V staffMsgMapperV;
    //连接查询员工表的信息
    @Override
    public IPage<DeptandEmpVo> findByPage(IPage<DeptandEmpVo> page) {
        return this.staffMsgMapperV.findByPage(page);
    }

    @Override
    public IPage<DeptandEmpVo> findPageByParam(IPage<DeptandEmpVo> page, Integer deptid, Integer empid, String empname) {
        return this.staffMsgMapperV.findPageByParam(page,deptid,empid,empname);
    }
}
